package br.com.rentalcar.dao;

import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import br.com.rentalcar.domain.Reserva;
import br.com.rentalcar.factory.ConexaoFactory;

public class ReservaDao {

	/*
	public void realizarReserva(Reserva reserva) throws SQLException {
		StringBuilder sql = new StringBuilder();
		sql.append("INSERT INTO reserva ");
		sql.append("dataRetirada, horaRetirada, dataDevolucao, horaDevolucao, multaDesistencia, desconto, funcionario_idfuncionario, cliente_idcliente, categoria_idcategoria ");
		sql.append("VALUES(?, ?, ?, ?, ?, ? ) ");

		Connection conexao = ConexaoFactory.conectar();

		PreparedStatement comando = conexao.prepareStatement(sql.toString());

		Date dataSql = new Date(reserva.getDtRetirada().getTime());
		comando.setDate(1, dataSql);

	}
	*/
	
}
